<template>
  <div @click="changeName">{{ store.getters.getAuthor }}</div>
</template>
<script setup lang="ts">
import { useStore } from "../src/store";
import { Action } from "./store/user/actions";

const store = useStore();

const changeName = () => {
  store.dispatch(Action.initAuthor);
};
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
